package com.hang.model.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DocumentModelDTO {
    @ApiModelProperty(value = "文档id")
    private Long documentId;

    @NotBlank
    @ApiModelProperty(value = "文档标题",required = true)
    private String documentTitle;

    @NotNull
    @ApiModelProperty(value = "模块号",required = true)
    private Long moduleId;

    @NotBlank
    @ApiModelProperty(value = "模块名",required = true)
    private String moduleName;

    @NotNull
    @ApiModelProperty(value = "是否允许评论",required = true)
    private Integer isComment;

    @ApiModelProperty(value = "内容[富文本]")
    private String content;

    @ApiModelProperty(value = "简介")
    private String remark;

    @ApiModelProperty(value = "创建人ID",required = true)
    @NotNull
    private Long userId;

    @ApiModelProperty(value = "创建人姓名",required = true)
    @NotBlank
    private String realName;
}
